import upload from '@/utils/upload'
import request from '@/utils/request'
//单文件上传
export function commonUpload(data) {
  return upload({
    url: '/common/app/uploadMinio',
    filePath: data.filePath
  })
}
// 查询文件分片上传配置接口
export function queryApplicationUploadConfigByAppCodeApi(){
	return request({
	  url: '/app/common/uploadConfigByApp',
	  method: 'get'
	})
}
/**
 * @param {string} fileMD5
 */
export function queryCurrentUploadResultByFileMd5Api(fileMD5){
	return request({
	  url: `/app/upload/getUploadingFile/${fileMD5}`,
	  method: 'get'
	})
}
export function initUploadRegisterRecordApi(data){
	return request({
	  url: `/app/upload/multipart/init`,
	  method: 'post',
	  data
	})
}